package com.roy.galaxy.helper;


import com.roy.galaxy.facade.IdGeneratorFacade;

public class ServiceLocator {

    private static IdGeneratorFacade idGeneratorFacade;

    public static IdGeneratorFacade getIdGeneratorFacade() {
        if(null == idGeneratorFacade){
            idGeneratorFacade = SpringContextHolder.getBean(IdGeneratorFacade.class);
        }
        return idGeneratorFacade;
    }


}
